import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
     menuData:[]   // 共享的菜单数据
  },
  getters: {
  },
  mutations: {
     changMenuData(state,payload){  //改变state中定义的数据
        state.menuData = payload;
     }
  },
  actions: {
  },
  modules: {
  }
})
